﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using T.FAS.Runtime.UserProfile.Entity;
using T.ServiceComponent.DAC.Service;

namespace T.FAS.Runtime.UserProfile.Dao
{
    public class UserProfileGroupDao : DaoService<UserProfileGroup>
    {
        public UserProfileGroupDao() :
          base()
        {
            DBName = "TFAS";
        }
        public override string IDColumnName => "ID";

        public override string TableName => "FAS_UserProfileGroup";

        public List<UserProfileGroup> GetUserProfileGroups()
        {
            var result = new List<UserProfileGroup>();
            List<object> objects = base.GetObjectsByFilter("1=1");
            if (objects != null)
            {
                objects.ForEach(obj => result.Add(obj as UserProfileGroup));
            }
            return result;
        }
    }
}
